/*
 ********************************************************************************
 *
 * Copyright (c) 2019-2024 Renesas Electronics Corporation and/or its affiliates
 *
 ********************************************************************************
 */

package com.dialog.suotalib.model;

public abstract class ScanAdapterItem {
    private String name;
    private String address;
    private int rssi;
    private boolean isPaired;

    public ScanAdapterItem(String name, String address, int rssi, boolean isPaired) {
        this.name = name;
        this.address = address;
        this.rssi = rssi;
        this.isPaired = isPaired;
    }

    public String getName() {
        return name;
    }

    public String getAddress() {
        return address;
    }

    public int getRssi() {
        return rssi;
    }

    public boolean isPaired() {
        return isPaired;
    }

    /**
     * Update device rssi.
     *
     * @param rssi device rssi
     */
    public void setRssi(int rssi) {
        this.rssi = rssi;
    }

    /**
     * Update the device pair state.
     *
     * @param isPaired the device pair state
     */
    public void setIsPaired(boolean isPaired) {
        this.isPaired = isPaired;
    }
}
